package com.wcs.exam.controller.auth.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * <p>
 * Auth-订单信息表-请求参数
 * </p>
 *
 * @author wcs
 * @since 2024-07-06
 */
@Getter
@Setter
@Accessors(chain = true)
@Schema(description = "Auth-订单信息表-请求参数")
public class AuthOrderInfoGoodsReq implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @NotNull(message = "user.order.info.goods.type.not.null")
    @Schema(description = "商品类型(1:课程、2:考试)", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer goodsType;

    @NotNull(message = "user.order.info.goods.id.not.null")
    @Schema(description = "商品ID", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long goodsId;
}
